#include <stdio.h>

int main(){
	
	int a;
	int b;
	int n=0; 	
	int base=10;
	scanf("%d/%d",&a,&b);
	
	printf("0.");
	
	int temp = a*base;
	while(temp<b){
		n++;
		printf("0");
		temp *= 10;
	}
	int m = temp % b;
	int j = temp / b;
	if(m==0){
		printf("%d",j);
	}
	while(m!=0&&n<200){
		n++;
		printf("%d",j);
		temp = m*10;
		while(temp<b&&n<200){
			n++;
			printf("0");
			temp *= 10;
		}
		m = temp % b; 
		j = temp / b ;
		if(m==0){
			printf("%d",j);
		}
	}
	printf("\n");	
	return 0;
}
